﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Epam.PhotoGallery.Interfaces.DataTransferObjects
{
    /// <summary>
    /// This class represent information about community category
    /// </summary>
    public class Category
    {
        #region Fields

        private string _id;

        #endregion

        /// <summary>
        /// Gets or sets the category's ID 
        /// </summary>
        /// <value>
        /// The category's ID
        /// </value>
        public string ID
        {
            get
            {
                if (_id == null)
                {
                    _id = Guid.NewGuid().ToString();
                }

                return _id;
            }

            set
            {
                if (value != null)
                {
                    _id = value;
                }
            }
        }

        /// <summary>
        /// Gets or sets the category's title
        /// </summary>
        /// <value>
        /// The category's title
        /// </value>
        public string Title
        { get; set; }


        /// <summary>
        /// Gets or sets the category's Description 
        /// </summary>
        /// <value>
        /// The category's description
        /// </value>
        public string Description
        { get; set; }


        /// <summary>
        /// Gets or sets the category's main image 
        /// </summary>
        /// <value>
        /// The category's image
        /// </value>
        public CommunityImage Image
        { get; set; }

          
    }
}
